<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
<script type="text/javascript">/* <![CDATA[ */
function get_sym_list(){return [["Function","xf",[["AddEditor",96],["AddEditor",149],["GetCompletionComments",81],["GetCompletionComments",350],["GetCompletionValues",82],["GetCompletionValues",357],["GetCompletions",80],["GetCompletions",343],["GetEditorCount",83],["GetEditorCount",364],["GetNthEditor",84],["GetNthEditor",369],["RemoveEditor",97],["RemoveEditor",479],["TCustomSynAutoComplete.AddEditor",149],["TCustomSynAutoComplete.GetCompletionComments",350],["TCustomSynAutoComplete.GetCompletionValues",357],["TCustomSynAutoComplete.GetCompletions",343],["TCustomSynAutoComplete.GetEditorCount",364],["TCustomSynAutoComplete.GetNthEditor",369],["TCustomSynAutoComplete.RemoveEditor",479]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span><span class="c">{-------------------------------------------------------------------------------
<a class="l" name="2" href="#2">2</a><span class='fold-space'>&nbsp;</span>The contents of this file are subject to the Mozilla Public License
<a class="l" name="3" href="#3">3</a><span class='fold-space'>&nbsp;</span>Version 1.1 (the &quot;License&quot;); you may not use this file except in compliance
<a class="l" name="4" href="#4">4</a><span class='fold-space'>&nbsp;</span>with the License. You may obtain a copy of the License at
<a class="l" name="5" href="#5">5</a><span class='fold-space'>&nbsp;</span><a href="http://www.mozilla.org/MPL/">http://www.mozilla.org/MPL/</a>
<a class="l" name="6" href="#6">6</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="7" href="#7">7</a><span class='fold-space'>&nbsp;</span>Software distributed under the License is distributed on an &quot;AS IS&quot; basis,
<a class="l" name="8" href="#8">8</a><span class='fold-space'>&nbsp;</span>WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
<a class="l" name="9" href="#9">9</a><span class='fold-space'>&nbsp;</span>the specific language governing rights and limitations under the License.
<a class="hl" name="10" href="#10">10</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="11" href="#11">11</a><span class='fold-space'>&nbsp;</span>The Original Code is: <a href="/source/s?path=SynEditAutoComplete.pas">SynEditAutoComplete.pas</a>, released 2000-06-25.
<a class="l" name="12" href="#12">12</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="13" href="#13">13</a><span class='fold-space'>&nbsp;</span>The Initial Author of the Original Code is Michael Hieke.
<a class="l" name="14" href="#14">14</a><span class='fold-space'>&nbsp;</span>Portions written by Michael Hieke are Copyright 2000 Michael Hieke.
<a class="l" name="15" href="#15">15</a><span class='fold-space'>&nbsp;</span>Portions written by Cyrille de Brebisson (from <a href="/source/s?path=mwCompletionProposal.pas">mwCompletionProposal.pas</a>) are
<a class="l" name="16" href="#16">16</a><span class='fold-space'>&nbsp;</span>Copyright 1999 Cyrille de Brebisson.
<a class="l" name="17" href="#17">17</a><span class='fold-space'>&nbsp;</span>Unicode translation by Ma&#235;l H&#246;rz.
<a class="l" name="18" href="#18">18</a><span class='fold-space'>&nbsp;</span>All Rights Reserved.
<a class="l" name="19" href="#19">19</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="20" href="#20">20</a><span class='fold-space'>&nbsp;</span>Contributors to the SynEdit and mwEdit projects are listed in the
<a class="l" name="21" href="#21">21</a><span class='fold-space'>&nbsp;</span><a href="/source/s?path=Contributors.txt">Contributors.txt</a> file.
<a class="l" name="22" href="#22">22</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="23" href="#23">23</a><span class='fold-space'>&nbsp;</span>Alternatively, the contents of this file may be used under the terms of the
<a class="l" name="24" href="#24">24</a><span class='fold-space'>&nbsp;</span>GNU General Public License Version 2 or later (the &quot;GPL&quot;), in which case
<a class="l" name="25" href="#25">25</a><span class='fold-space'>&nbsp;</span>the provisions of the GPL are applicable instead of those above.
<a class="l" name="26" href="#26">26</a><span class='fold-space'>&nbsp;</span>If you wish to allow use of your version of this file only under the terms
<a class="l" name="27" href="#27">27</a><span class='fold-space'>&nbsp;</span>of the GPL and not to allow others to use your version of this file
<a class="l" name="28" href="#28">28</a><span class='fold-space'>&nbsp;</span>under the MPL, indicate your decision by deleting the provisions above and
<a class="l" name="29" href="#29">29</a><span class='fold-space'>&nbsp;</span>replace them with the notice and other provisions required by the GPL.
<a class="hl" name="30" href="#30">30</a><span class='fold-space'>&nbsp;</span>If you do not delete the provisions above, a recipient may use your version
<a class="l" name="31" href="#31">31</a><span class='fold-space'>&nbsp;</span>of this file under either the MPL or the GPL.
<a class="l" name="32" href="#32">32</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="33" href="#33">33</a><span class='fold-space'>&nbsp;</span>$Id: <a href="/source/s?path=SynEditAutoComplete.pas">SynEditAutoComplete.pas</a>,v 1.10.2.4 2008/09/14 16:24:58 maelh Exp $
<a class="l" name="34" href="#34">34</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="35" href="#35">35</a><span class='fold-space'>&nbsp;</span>You may retrieve the latest version of this file at the SynEdit home page,
<a class="l" name="36" href="#36">36</a><span class='fold-space'>&nbsp;</span>located at <a href="http://SynEdit.SourceForge.net">http://SynEdit.SourceForge.net</a>
<a class="l" name="37" href="#37">37</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="38" href="#38">38</a><span class='fold-space'>&nbsp;</span>Known Issues:
<a class="l" name="39" href="#39">39</a><span class='fold-space'>&nbsp;</span>-------------------------------------------------------------------------------}</span>
<a class="hl" name="40" href="#40">40</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="41" href="#41">41</a><span class='fold-space'>&nbsp;</span><span class="c">{$IFNDEF QSYNEDITAUTOCOMPLETE}</span>
<a class="l" name="42" href="#42">42</a><span class='fold-space'>&nbsp;</span><b>unit</b> <a class="d" name="SynEditAutoComplete"/><a href="/source/s?refs=SynEditAutoComplete" class="d intelliWindow-symbol" data-definition-place="def">SynEditAutoComplete</a>&#59;
<a class="l" name="43" href="#43">43</a><span class='fold-space'>&nbsp;</span><span class="c">{$ENDIF}</span>
<a class="l" name="44" href="#44">44</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="45" href="#45">45</a><span class='fold-space'>&nbsp;</span><span class="c">{$I SynEdit.inc}</span>
<a class="l" name="46" href="#46">46</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="47" href="#47">47</a><span class='fold-space'>&nbsp;</span><b>interface</b>
<a class="l" name="48" href="#48">48</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="49" href="#49">49</a><span class='fold-space'>&nbsp;</span><b>uses</b>
<a class="hl" name="50" href="#50">50</a><span class='fold-space'>&nbsp;</span>  <span class="c">{$IFDEF SYN_CLX}</span>
<a class="l" name="51" href="#51">51</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Qt" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Qt</a>,
<a class="l" name="52" href="#52">52</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=QMenus" class="intelliWindow-symbol" data-definition-place="undefined-in-file">QMenus</a>,
<a class="l" name="53" href="#53">53</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Types" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Types</a>,
<a class="l" name="54" href="#54">54</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=QSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">QSynEdit</a>,
<a class="l" name="55" href="#55">55</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=QSynEditKeyCmds" class="intelliWindow-symbol" data-definition-place="undefined-in-file">QSynEditKeyCmds</a>,
<a class="l" name="56" href="#56">56</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=QSynUnicode" class="intelliWindow-symbol" data-definition-place="undefined-in-file">QSynUnicode</a>,
<a class="l" name="57" href="#57">57</a><span class='fold-space'>&nbsp;</span>  <span class="c">{$ELSE}</span>
<a class="l" name="58" href="#58">58</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Windows" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Windows</a>,
<a class="l" name="59" href="#59">59</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Menus" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Menus</a>,
<a class="hl" name="60" href="#60">60</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=SynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynEdit</a>,
<a class="l" name="61" href="#61">61</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=SynEditKeyCmds" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynEditKeyCmds</a>,
<a class="l" name="62" href="#62">62</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=SynUnicode" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynUnicode</a>,
<a class="l" name="63" href="#63">63</a><span class='fold-space'>&nbsp;</span>  <span class="c">{$ENDIF}</span>
<a class="l" name="64" href="#64">64</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Classes" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Classes</a>&#59;
<a class="l" name="65" href="#65">65</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="66" href="#66">66</a><span class='fold-space'>&nbsp;</span><b>type</b>
<a class="l" name="67" href="#67">67</a><span class='fold-space'>&nbsp;</span>  <a class="d" name="TCustomSynAutoComplete"/><a href="/source/s?refs=TCustomSynAutoComplete" class="d intelliWindow-symbol" data-definition-place="def">TCustomSynAutoComplete</a> = <b>class</b>(<a href="/source/s?defs=TComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TComponent</a>)
<a class="l" name="68" href="#68">68</a><span class='fold-space'>&nbsp;</span>  <b>protected</b>
<a class="l" name="69" href="#69">69</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<a class="hl" name="70" href="#70">70</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<a class="l" name="71" href="#71">71</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<a class="l" name="72" href="#72">72</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<a class="l" name="73" href="#73">73</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>&#59;
<a class="l" name="74" href="#74">74</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>: <a href="/source/s?defs=TList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TList</a>&#59;
<a class="l" name="75" href="#75">75</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FEOTokenChars" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEOTokenChars</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59;
<a class="l" name="76" href="#76">76</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCaseSensitive" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCaseSensitive</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="l" name="77" href="#77">77</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="l" name="78" href="#78">78</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="CompletionListChanged"/><a href="/source/s?refs=CompletionListChanged" class="d intelliWindow-symbol" data-definition-place="def">CompletionListChanged</a>(<a href="/source/s?defs=Sender" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Sender</a>: <a href="/source/s?defs=TObject" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TObject</a>)&#59;
<a class="l" name="79" href="#79">79</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="DefineProperties"/><a href="/source/s?refs=DefineProperties" class="d intelliWindow-symbol" data-definition-place="def">DefineProperties</a>(<a href="/source/s?defs=Filer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Filer</a>: <a href="/source/s?defs=TFiler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TFiler</a>)&#59; <b>override</b>&#59;
<span id='scope_id_d5e94100' class='scope-head'><span class='scope-signature'>GetCompletionsnull</span><a class="hl" name="80" href="#80">80</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_d5e94100_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="GetCompletions"/><a href="/source/s?refs=GetCompletions" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletions</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<span id='scope_id_56034174' class='scope-head'><span class='scope-signature'>GetCompletionCommentsnull</span><a class="l" name="81" href="#81">81</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_56034174_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="GetCompletionComments"/><a href="/source/s?refs=GetCompletionComments" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletionComments</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<span id='scope_id_52b2f2c1' class='scope-head'><span class='scope-signature'>GetCompletionValuesnull</span><a class="l" name="82" href="#82">82</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_52b2f2c1_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="GetCompletionValues"/><a href="/source/s?refs=GetCompletionValues" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletionValues</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
<span id='scope_id_14dc2c4e' class='scope-head'><span class='scope-signature'>GetEditorCountnull</span><a class="l" name="83" href="#83">83</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_14dc2c4e_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="GetEditorCount"/><a href="/source/s?refs=GetEditorCount" class="xf intelliWindow-symbol" data-definition-place="def">GetEditorCount</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<span id='scope_id_7d5c2cdc' class='scope-head'><span class='scope-signature'>GetNthEditornull</span><a class="l" name="84" href="#84">84</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_7d5c2cdc_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="GetNthEditor"/><a href="/source/s?refs=GetNthEditor" class="xf intelliWindow-symbol" data-definition-place="def">GetNthEditor</a>(<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>): <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>&#59;
</span><a class="l" name="85" href="#85">85</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="SetAutoCompleteList"/><a href="/source/s?refs=SetAutoCompleteList" class="d intelliWindow-symbol" data-definition-place="def">SetAutoCompleteList</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>)&#59; <b>virtual</b>&#59;
<a class="l" name="86" href="#86">86</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="SetEditor"/><a href="/source/s?refs=SetEditor" class="d intelliWindow-symbol" data-definition-place="def">SetEditor</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="87" href="#87">87</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="SynEditCommandHandler"/><a href="/source/s?refs=SynEditCommandHandler" class="d intelliWindow-symbol" data-definition-place="def">SynEditCommandHandler</a>(<a href="/source/s?defs=Sender" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Sender</a>: <a href="/source/s?defs=TObject" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TObject</a>&#59; <a href="/source/s?defs=AfterProcessing" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AfterProcessing</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="l" name="88" href="#88">88</a><span class='fold-space'>&nbsp;</span>      <b>var</b> <a href="/source/s?defs=Handled" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Handled</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59; <b>var</b> <a href="/source/s?defs=Command" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Command</a>: <a href="/source/s?defs=TSynEditorCommand" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TSynEditorCommand</a>&#59; <b>var</b> <a href="/source/s?defs=AChar" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AChar</a>: <a href="/source/s?defs=WideChar" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideChar</a>&#59;
<a class="l" name="89" href="#89">89</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=Data" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Data</a>, <a href="/source/s?defs=HandlerData" class="intelliWindow-symbol" data-definition-place="undefined-in-file">HandlerData</a>: <a href="/source/s?defs=Pointer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Pointer</a>)&#59;
<a class="hl" name="90" href="#90">90</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="Notification"/><a href="/source/s?refs=Notification" class="d intelliWindow-symbol" data-definition-place="def">Notification</a>(<a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a>: <a href="/source/s?defs=TComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TComponent</a>&#59; <a href="/source/s?defs=Operation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Operation</a>: <a href="/source/s?defs=TOperation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TOperation</a>)&#59;
<a class="l" name="91" href="#91">91</a><span class='fold-space'>&nbsp;</span>      <b>override</b>&#59;
<a class="l" name="92" href="#92">92</a><span class='fold-space'>&nbsp;</span>  <b>public</b>
<a class="l" name="93" href="#93">93</a><span class='fold-space'>&nbsp;</span>    <b>constructor</b> <a class="d" name="Create"/><a href="/source/s?refs=Create" class="d intelliWindow-symbol" data-definition-place="def">Create</a>(<a href="/source/s?defs=AOwner" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AOwner</a>: <a href="/source/s?defs=TComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TComponent</a>)&#59; <b>override</b>&#59;
<a class="l" name="94" href="#94">94</a><span class='fold-space'>&nbsp;</span>    <b>destructor</b> <a class="d" name="Destroy"/><a href="/source/s?refs=Destroy" class="d intelliWindow-symbol" data-definition-place="def">Destroy</a>&#59; <b>override</b>&#59;
<a class="l" name="95" href="#95">95</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_7abb87d8' class='scope-head'><span class='scope-signature'>AddEditornull</span><a class="l" name="96" href="#96">96</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_7abb87d8_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="AddEditor"/><a href="/source/s?refs=AddEditor" class="xf intelliWindow-symbol" data-definition-place="def">AddEditor</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>): <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<span id='scope_id_c7b8b756' class='scope-head'><span class='scope-signature'>RemoveEditornull</span><a class="l" name="97" href="#97">97</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_c7b8b756_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>function</b> <a class="xf" name="RemoveEditor"/><a href="/source/s?refs=RemoveEditor" class="xf intelliWindow-symbol" data-definition-place="def">RemoveEditor</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>): <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
</span><a class="l" name="98" href="#98">98</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="99" href="#99">99</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="AddCompletion"/><a href="/source/s?refs=AddCompletion" class="d intelliWindow-symbol" data-definition-place="def">AddCompletion</a>(<b>const</b> <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>, <a href="/source/s?defs=AValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AValue</a>, <a href="/source/s?defs=AComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComment</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>)&#59;
<a class="hl" name="100" href="#100">100</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="Execute"/><a href="/source/s?refs=Execute" class="d intelliWindow-symbol" data-definition-place="def">Execute</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59; <b>virtual</b>&#59;
<a class="l" name="101" href="#101">101</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="ExecuteCompletion"/><a href="/source/s?refs=ExecuteCompletion" class="d intelliWindow-symbol" data-definition-place="def">ExecuteCompletion</a>(<b>const</b> <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59; <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="102" href="#102">102</a><span class='fold-space'>&nbsp;</span>      <b>virtual</b>&#59;
<a class="l" name="103" href="#103">103</a><span class='fold-space'>&nbsp;</span>    <b>procedure</b> <a class="d" name="ParseCompletionList"/><a href="/source/s?refs=ParseCompletionList" class="d intelliWindow-symbol" data-definition-place="def">ParseCompletionList</a>&#59; <b>virtual</b>&#59;
<a class="l" name="104" href="#104">104</a><span class='fold-space'>&nbsp;</span>  <b>public</b>
<a class="l" name="105" href="#105">105</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="AutoCompleteList"/><a href="/source/s?refs=AutoCompleteList" class="d intelliWindow-symbol" data-definition-place="def">AutoCompleteList</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a> <b>read</b> <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>
<a class="l" name="106" href="#106">106</a><span class='fold-space'>&nbsp;</span>      <b>write</b> <a href="/source/s?defs=SetAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SetAutoCompleteList</a>&#59;
<a class="l" name="107" href="#107">107</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="CaseSensitive"/><a href="/source/s?refs=CaseSensitive" class="d intelliWindow-symbol" data-definition-place="def">CaseSensitive</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a> <b>read</b> <a href="/source/s?defs=FCaseSensitive" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCaseSensitive</a> <b>write</b> <a href="/source/s?defs=FCaseSensitive" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCaseSensitive</a>&#59;
<a class="l" name="108" href="#108">108</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="Completions"/><a href="/source/s?refs=Completions" class="d intelliWindow-symbol" data-definition-place="def">Completions</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a> <b>read</b> <a href="/source/s?defs=GetCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">GetCompletions</a>&#59;
<a class="l" name="109" href="#109">109</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="CompletionComments"/><a href="/source/s?refs=CompletionComments" class="d intelliWindow-symbol" data-definition-place="def">CompletionComments</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a> <b>read</b> <a href="/source/s?defs=GetCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">GetCompletionComments</a>&#59;
<a class="hl" name="110" href="#110">110</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="CompletionValues"/><a href="/source/s?refs=CompletionValues" class="d intelliWindow-symbol" data-definition-place="def">CompletionValues</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a> <b>read</b> <a href="/source/s?defs=GetCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">GetCompletionValues</a>&#59;
<a class="l" name="111" href="#111">111</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="Editor"/><a href="/source/s?refs=Editor" class="d intelliWindow-symbol" data-definition-place="def">Editor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a> <b>read</b> <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> <b>write</b> <a href="/source/s?defs=SetEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SetEditor</a>&#59;
<a class="l" name="112" href="#112">112</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="EditorCount"/><a href="/source/s?refs=EditorCount" class="d intelliWindow-symbol" data-definition-place="def">EditorCount</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a> <b>read</b> <a href="/source/s?defs=GetEditorCount" class="intelliWindow-symbol" data-definition-place="undefined-in-file">GetEditorCount</a>&#59;
<a class="l" name="113" href="#113">113</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a href="/source/s?defs=Editors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Editors</a>[<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>]: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a> <b>read</b> <a href="/source/s?defs=GetNthEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">GetNthEditor</a>&#59;
<a class="l" name="114" href="#114">114</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d" name="EndOfTokenChr"/><a href="/source/s?refs=EndOfTokenChr" class="d intelliWindow-symbol" data-definition-place="def">EndOfTokenChr</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a> <b>read</b> <a href="/source/s?defs=FEOTokenChars" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEOTokenChars</a> <b>write</b> <a href="/source/s?defs=FEOTokenChars" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEOTokenChars</a>&#59;
<a class="l" name="115" href="#115">115</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="116" href="#116">116</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="117" href="#117">117</a><span class='fold-space'>&nbsp;</span>  <a class="d" name="TSynAutoComplete"/><a href="/source/s?refs=TSynAutoComplete" class="d intelliWindow-symbol" data-definition-place="def">TSynAutoComplete</a> = <b>class</b>(<a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>)
<a class="l" name="118" href="#118">118</a><span class='fold-space'>&nbsp;</span>  <b>published</b>
<a class="l" name="119" href="#119">119</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d intelliWindow-symbol" href="#AutoCompleteList" data-definition-place="defined-in-file">AutoCompleteList</a>&#59;
<a class="hl" name="120" href="#120">120</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d intelliWindow-symbol" href="#CaseSensitive" data-definition-place="defined-in-file">CaseSensitive</a>&#59;
<a class="l" name="121" href="#121">121</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d intelliWindow-symbol" href="#Editor" data-definition-place="defined-in-file">Editor</a>&#59;
<a class="l" name="122" href="#122">122</a><span class='fold-space'>&nbsp;</span>    <b>property</b> <a class="d intelliWindow-symbol" href="#EndOfTokenChr" data-definition-place="defined-in-file">EndOfTokenChr</a>&#59;
<a class="l" name="123" href="#123">123</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="124" href="#124">124</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="125" href="#125">125</a><span class='fold-space'>&nbsp;</span><b>implementation</b>
<a class="l" name="126" href="#126">126</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="127" href="#127">127</a><span class='fold-space'>&nbsp;</span><b>uses</b>
<a class="l" name="128" href="#128">128</a><span class='fold-space'>&nbsp;</span><span class="c">{$IFDEF SYN_CLX}</span>
<a class="l" name="129" href="#129">129</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=QSynEditTypes" class="intelliWindow-symbol" data-definition-place="undefined-in-file">QSynEditTypes</a>,
<a class="hl" name="130" href="#130">130</a><span class='fold-space'>&nbsp;</span><span class="c">{$ELSE}</span>
<a class="l" name="131" href="#131">131</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=SynEditTypes" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynEditTypes</a>,
<a class="l" name="132" href="#132">132</a><span class='fold-space'>&nbsp;</span><span class="c">{$ENDIF}</span>
<a class="l" name="133" href="#133">133</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=SysUtils" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SysUtils</a>&#59;
<a class="l" name="134" href="#134">134</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="135" href="#135">135</a><span class='fold-space'>&nbsp;</span><span class="c">{ TCustomSynAutoComplete }</span>
<a class="l" name="136" href="#136">136</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="137" href="#137">137</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="AddCompletion"/><a href="/source/s?refs=AddCompletion" class="d intelliWindow-symbol" data-definition-place="def">AddCompletion</a>(<b>const</b> <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>, <a href="/source/s?defs=AValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AValue</a>, <a href="/source/s?defs=AComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComment</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>)&#59;
<a class="l" name="138" href="#138">138</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="139" href="#139">139</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a> &lt;&gt; <span class="s">&apos;<a href="http://example.com">http://example.com</a>&apos;</span> <b>then</b>
<a class="hl" name="140" href="#140">140</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="141" href="#141">141</a><span class='fold-space'>&nbsp;</span>    <b>if</b> (<a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> = <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> = <span class="n">0</span>) <b>then</b>
<a class="l" name="142" href="#142">142</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> := <a href="/source/s?defs=True" class="intelliWindow-symbol" data-definition-place="undefined-in-file">True</a>&#59;
<a class="l" name="143" href="#143">143</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>)&#59;
<a class="l" name="144" href="#144">144</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=AComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComment</a>)&#59;
<a class="l" name="145" href="#145">145</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=AValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AValue</a>)&#59;
<a class="l" name="146" href="#146">146</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="147" href="#147">147</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="148" href="#148">148</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_8bf7491f' class='scope-head'><span class='scope-signature'>AddEditornull</span><a class="l" name="149" href="#149">149</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_8bf7491f_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="AddEditor"/><a href="/source/s?refs=AddEditor" class="xf intelliWindow-symbol" data-definition-place="def">AddEditor</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>): <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
</span><a class="hl" name="150" href="#150">150</a><span class='fold-space'>&nbsp;</span><b>var</b>
<a class="l" name="151" href="#151">151</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="152" href="#152">152</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="153" href="#153">153</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a> &lt;&gt; <b>nil</b> <b>then</b>
<a class="l" name="154" href="#154">154</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="155" href="#155">155</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=IndexOf" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndexOf</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>)&#59;
<a class="l" name="156" href="#156">156</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> = <span class="n">-1</span> <b>then</b>
<a class="l" name="157" href="#157">157</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="158" href="#158">158</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=FreeNotification" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FreeNotification</a>(<a href="/source/s?defs=Self" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Self</a>)&#59;
<a class="l" name="159" href="#159">159</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>)&#59;
<a class="hl" name="160" href="#160">160</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=RegisterCommandHandler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">RegisterCommandHandler</a>(<a href="/source/s?defs=SynEditCommandHandler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynEditCommandHandler</a>, <b>nil</b>)&#59;
<a class="l" name="161" href="#161">161</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="l" name="162" href="#162">162</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=True" class="intelliWindow-symbol" data-definition-place="undefined-in-file">True</a>&#59;
<a class="l" name="163" href="#163">163</a><span class='fold-space'>&nbsp;</span>  end
<a class="l" name="164" href="#164">164</a><span class='fold-space'>&nbsp;</span>  <b>else</b>
<a class="l" name="165" href="#165">165</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=False" class="intelliWindow-symbol" data-definition-place="undefined-in-file">False</a>&#59;
<a class="l" name="166" href="#166">166</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="167" href="#167">167</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="168" href="#168">168</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="CompletionListChanged"/><a href="/source/s?refs=CompletionListChanged" class="d intelliWindow-symbol" data-definition-place="def">CompletionListChanged</a>(<a href="/source/s?defs=Sender" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Sender</a>: <a href="/source/s?defs=TObject" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TObject</a>)&#59;
<a class="l" name="169" href="#169">169</a><span class='fold-space'>&nbsp;</span>begin
<a class="hl" name="170" href="#170">170</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> := <a href="/source/s?defs=False" class="intelliWindow-symbol" data-definition-place="undefined-in-file">False</a>&#59;
<a class="l" name="171" href="#171">171</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="172" href="#172">172</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="173" href="#173">173</a><span class='fold-space'>&nbsp;</span><b>constructor</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>(<a href="/source/s?defs=AOwner" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AOwner</a>: <a href="/source/s?defs=TComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TComponent</a>)&#59;
<a class="l" name="174" href="#174">174</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="175" href="#175">175</a><span class='fold-space'>&nbsp;</span>  <b>inherited</b> <a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>(<a href="/source/s?defs=AOwner" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AOwner</a>)&#59;
<a class="l" name="176" href="#176">176</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a> := <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="l" name="177" href="#177">177</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>(<a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>).<a href="/source/s?defs=OnChange" class="intelliWindow-symbol" data-definition-place="undefined-in-file">OnChange</a> := <a href="/source/s?defs=CompletionListChanged" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CompletionListChanged</a>&#59;
<a class="l" name="178" href="#178">178</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a> := <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="l" name="179" href="#179">179</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a> := <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="hl" name="180" href="#180">180</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a> := <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="l" name="181" href="#181">181</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a> := <a href="/source/s?defs=TList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="l" name="182" href="#182">182</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FEOTokenChars" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEOTokenChars</a> := <span class="s">&apos;()[]{}.&apos;&apos;&apos;</span>&#59;
<a class="l" name="183" href="#183">183</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="184" href="#184">184</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="185" href="#185">185</a><span class='fold-space'>&nbsp;</span><b>destructor</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d intelliWindow-symbol" href="#Destroy" data-definition-place="defined-in-file">Destroy</a>&#59;
<a class="l" name="186" href="#186">186</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="187" href="#187">187</a><span class='fold-space'>&nbsp;</span>  <a class="d intelliWindow-symbol" href="#Editor" data-definition-place="defined-in-file">Editor</a> := <b>nil</b>&#59;
<a class="l" name="188" href="#188">188</a><span class='fold-space'>&nbsp;</span>  <b>while</b> <a class="d intelliWindow-symbol" href="#EditorCount" data-definition-place="defined-in-file">EditorCount</a> &gt; <span class="n">0</span> <b>do</b>
<a class="l" name="189" href="#189">189</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=RemoveEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">RemoveEditor</a>(<a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>(<a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Last" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Last</a>))&#59;
<a class="hl" name="190" href="#190">190</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="191" href="#191">191</a><span class='fold-space'>&nbsp;</span>  <b>inherited</b> <a class="d intelliWindow-symbol" href="#Destroy" data-definition-place="defined-in-file">Destroy</a>&#59;
<a class="l" name="192" href="#192">192</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="193" href="#193">193</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="194" href="#194">194</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="195" href="#195">195</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="196" href="#196">196</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="197" href="#197">197</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="198" href="#198">198</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="199" href="#199">199</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="DefineProperties"/><a href="/source/s?refs=DefineProperties" class="d intelliWindow-symbol" data-definition-place="def">DefineProperties</a>(<a href="/source/s?defs=Filer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Filer</a>: <a href="/source/s?defs=TFiler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TFiler</a>)&#59;
<a class="hl" name="200" href="#200">200</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="201" href="#201">201</a><span class='fold-space'>&nbsp;</span>  <b>inherited</b>&#59;
<a class="l" name="202" href="#202">202</a><span class='fold-space'>&nbsp;</span><span class="c">{$IFNDEF UNICODE}</span>
<a class="l" name="203" href="#203">203</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=UnicodeDefineProperties" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeDefineProperties</a>(<a href="/source/s?defs=Filer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Filer</a>, <a href="/source/s?defs=Self" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Self</a>)&#59;
<a class="l" name="204" href="#204">204</a><span class='fold-space'>&nbsp;</span><span class="c">{$ENDIF}</span>
<a class="l" name="205" href="#205">205</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="206" href="#206">206</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="207" href="#207">207</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="Execute"/><a href="/source/s?refs=Execute" class="d intelliWindow-symbol" data-definition-place="def">Execute</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="208" href="#208">208</a><span class='fold-space'>&nbsp;</span><b>var</b>
<a class="l" name="209" href="#209">209</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59;
<a class="hl" name="210" href="#210">210</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="211" href="#211">211</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="212" href="#212">212</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a> &lt;&gt; <b>nil</b> <b>then</b>
<a class="l" name="213" href="#213">213</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="214" href="#214">214</a><span class='fold-space'>&nbsp;</span>    <span class="c">// get token</span>
<a class="l" name="215" href="#215">215</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=LineText" class="intelliWindow-symbol" data-definition-place="undefined-in-file">LineText</a>&#59;
<a class="l" name="216" href="#216">216</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> := <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=CaretX" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CaretX</a>&#59;
<a class="l" name="217" href="#217">217</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> - <span class="n">1</span>&#59;
<a class="l" name="218" href="#218">218</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &lt;= <a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>) <b>then</b>
<a class="l" name="219" href="#219">219</a><span class='fold-space'>&nbsp;</span>    begin
<a class="hl" name="220" href="#220">220</a><span class='fold-space'>&nbsp;</span>      <b>while</b> (<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>] &gt; <span class="s">&apos; &apos;</span>) <b>and</b> (<a href="/source/s?defs=Pos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Pos</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>], <a href="/source/s?defs=FEOTokenChars" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEOTokenChars</a>) = <span class="n">0</span>) <b>do</b>
<a class="l" name="221" href="#221">221</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=Dec" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Dec</a>(<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="222" href="#222">222</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="223" href="#223">223</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> - <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="224" href="#224">224</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=ExecuteCompletion" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ExecuteCompletion</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>)&#59;
<a class="l" name="225" href="#225">225</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="l" name="226" href="#226">226</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="227" href="#227">227</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="228" href="#228">228</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="229" href="#229">229</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="ExecuteCompletion"/><a href="/source/s?refs=ExecuteCompletion" class="d intelliWindow-symbol" data-definition-place="def">ExecuteCompletion</a>(<b>const</b> <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59;
<a class="hl" name="230" href="#230">230</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="231" href="#231">231</a><span class='fold-space'>&nbsp;</span><b>var</b>
<a class="l" name="232" href="#232">232</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>, <a href="/source/s?defs=IndentLen" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndentLen</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="233" href="#233">233</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59;
<a class="l" name="234" href="#234">234</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=IdxMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IdxMaybe</a>, <a href="/source/s?defs=NumMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NumMaybe</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="235" href="#235">235</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>: <a href="/source/s?defs=TBufferCoord" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TBufferCoord</a>&#59;
<a class="l" name="236" href="#236">236</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=NewCaretPos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NewCaretPos</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="l" name="237" href="#237">237</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>: <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>&#59;
<a class="l" name="238" href="#238">238</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="239" href="#239">239</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <b>not</b> <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> <b>then</b>
<a class="hl" name="240" href="#240">240</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=ParseCompletionList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ParseCompletionList</a>&#59;
<a class="l" name="241" href="#241">241</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> := <a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>)&#59;
<a class="l" name="242" href="#242">242</a><span class='fold-space'>&nbsp;</span>  <b>if</b> (<a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a> &lt;&gt; <b>nil</b>) <b>and</b> <b>not</b> <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=ReadOnly" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ReadOnly</a>
<a class="l" name="243" href="#243">243</a><span class='fold-space'>&nbsp;</span>    <b>and</b> (<a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> &gt; <span class="n">0</span>) <b>then</b>
<a class="l" name="244" href="#244">244</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="245" href="#245">245</a><span class='fold-space'>&nbsp;</span>    <span class="c">// find completion for this token - not all chars necessary if unambiguous</span>
<a class="l" name="246" href="#246">246</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> - <span class="n">1</span>&#59;
<a class="l" name="247" href="#247">247</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=IdxMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IdxMaybe</a> := <span class="n">-1</span>&#59;
<a class="l" name="248" href="#248">248</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=NumMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NumMaybe</a> := <span class="n">0</span>&#59;
<a class="l" name="249" href="#249">249</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=FCaseSensitive" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCaseSensitive</a> <b>then</b>
<a class="hl" name="250" href="#250">250</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="251" href="#251">251</a><span class='fold-space'>&nbsp;</span>      <b>while</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt; <span class="n">-1</span> <b>do</b>
<a class="l" name="252" href="#252">252</a><span class='fold-space'>&nbsp;</span>      begin
<a class="l" name="253" href="#253">253</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="254" href="#254">254</a><span class='fold-space'>&nbsp;</span>        <b>if</b> <a href="/source/s?defs=WideCompareStr" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideCompareStr</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>) = <span class="n">0</span> <b>then</b>
<a class="l" name="255" href="#255">255</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Break" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Break</a>
<a class="l" name="256" href="#256">256</a><span class='fold-space'>&nbsp;</span>        <b>else</b> <b>if</b> <a href="/source/s?defs=WideCompareStr" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideCompareStr</a>(<a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <span class="n">1</span>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>), <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>) = <span class="n">0</span> <b>then</b>
<a class="l" name="257" href="#257">257</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="258" href="#258">258</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=NumMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NumMaybe</a>)&#59;
<a class="l" name="259" href="#259">259</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=IdxMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IdxMaybe</a> := <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>&#59;
<a class="hl" name="260" href="#260">260</a><span class='fold-space'>&nbsp;</span>        end&#59;
<a class="l" name="261" href="#261">261</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=Dec" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Dec</a>(<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="262" href="#262">262</a><span class='fold-space'>&nbsp;</span>      end&#59;
<a class="l" name="263" href="#263">263</a><span class='fold-space'>&nbsp;</span>    end
<a class="l" name="264" href="#264">264</a><span class='fold-space'>&nbsp;</span>    <b>else</b>
<a class="l" name="265" href="#265">265</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="266" href="#266">266</a><span class='fold-space'>&nbsp;</span>      <b>while</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt; <span class="n">-1</span> <b>do</b>
<a class="l" name="267" href="#267">267</a><span class='fold-space'>&nbsp;</span>      begin
<a class="l" name="268" href="#268">268</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="269" href="#269">269</a><span class='fold-space'>&nbsp;</span>        <b>if</b> <a href="/source/s?defs=WideCompareText" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideCompareText</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>) = <span class="n">0</span> <b>then</b>
<a class="hl" name="270" href="#270">270</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Break" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Break</a>
<a class="l" name="271" href="#271">271</a><span class='fold-space'>&nbsp;</span>        <b>else</b> <b>if</b> <a href="/source/s?defs=WideCompareText" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideCompareText</a>(<a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <span class="n">1</span>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>), <a href="/source/s?defs=AToken" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AToken</a>) = <span class="n">0</span> <b>then</b>
<a class="l" name="272" href="#272">272</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="273" href="#273">273</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=NumMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NumMaybe</a>)&#59;
<a class="l" name="274" href="#274">274</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=IdxMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IdxMaybe</a> := <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>&#59;
<a class="l" name="275" href="#275">275</a><span class='fold-space'>&nbsp;</span>        end&#59;
<a class="l" name="276" href="#276">276</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=Dec" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Dec</a>(<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="277" href="#277">277</a><span class='fold-space'>&nbsp;</span>      end&#59;
<a class="l" name="278" href="#278">278</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="l" name="279" href="#279">279</a><span class='fold-space'>&nbsp;</span>    <b>if</b> (<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> = <span class="n">-1</span>) <b>and</b> (<a href="/source/s?defs=NumMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NumMaybe</a> = <span class="n">1</span>) <b>then</b>
<a class="hl" name="280" href="#280">280</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=IdxMaybe" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IdxMaybe</a>&#59;
<a class="l" name="281" href="#281">281</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt; <span class="n">-1</span> <b>then</b>
<a class="l" name="282" href="#282">282</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="283" href="#283">283</a><span class='fold-space'>&nbsp;</span>      <span class="c">// select token in editor</span>
<a class="l" name="284" href="#284">284</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a> := <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=CaretXY" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CaretXY</a>&#59;
<a class="l" name="285" href="#285">285</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=BeginUpdate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BeginUpdate</a>&#59;
<a class="l" name="286" href="#286">286</a><span class='fold-space'>&nbsp;</span>      <b>try</b>
<a class="l" name="287" href="#287">287</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=BlockBegin" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BlockBegin</a> := <a href="/source/s?defs=BufferCoord" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BufferCoord</a>(<a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Char" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Char</a> - <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>, <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Line" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Line</a>)&#59;
<a class="l" name="288" href="#288">288</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=BlockEnd" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BlockEnd</a> := <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>&#59;
<a class="l" name="289" href="#289">289</a><span class='fold-space'>&nbsp;</span>        <span class="c">// indent the completion string if necessary, determine the caret pos</span>
<a class="hl" name="290" href="#290">290</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=IndentLen" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndentLen</a> := <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Char" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Char</a> - <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> - <span class="n">1</span>&#59;
<a class="l" name="291" href="#291">291</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a> := <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=BlockBegin" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BlockBegin</a>&#59;
<a class="l" name="292" href="#292">292</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=NewCaretPos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NewCaretPos</a> := <a href="/source/s?defs=False" class="intelliWindow-symbol" data-definition-place="undefined-in-file">False</a>&#59;
<a class="l" name="293" href="#293">293</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a> := <a href="/source/s?defs=TUnicodeStringList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStringList</a>.<a class="d intelliWindow-symbol" href="#Create" data-definition-place="defined-in-file">Create</a>&#59;
<a class="l" name="294" href="#294">294</a><span class='fold-space'>&nbsp;</span>        <b>try</b>
<a class="l" name="295" href="#295">295</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Text</a> := <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="296" href="#296">296</a><span class='fold-space'>&nbsp;</span>          <span class="c">// indent lines</span>
<a class="l" name="297" href="#297">297</a><span class='fold-space'>&nbsp;</span>          <b>if</b> (<a href="/source/s?defs=IndentLen" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndentLen</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> &gt; <span class="n">1</span>) <b>then</b>
<a class="l" name="298" href="#298">298</a><span class='fold-space'>&nbsp;</span>          begin
<a class="l" name="299" href="#299">299</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=UnicodeStringOfChar" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeStringOfChar</a>(<span class="s">&apos; &apos;</span>, <a href="/source/s?defs=IndentLen" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndentLen</a>)&#59;
<a class="hl" name="300" href="#300">300</a><span class='fold-space'>&nbsp;</span>            <b>for</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <span class="n">1</span> <b>to</b> <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> - <span class="n">1</span> <b>do</b>
<a class="l" name="301" href="#301">301</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>] := <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> + <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="302" href="#302">302</a><span class='fold-space'>&nbsp;</span>          end&#59;
<a class="l" name="303" href="#303">303</a><span class='fold-space'>&nbsp;</span>          <span class="c">// find first &apos;|&apos; and use it as caret position</span>
<a class="l" name="304" href="#304">304</a><span class='fold-space'>&nbsp;</span>          <b>for</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <span class="n">0</span> <b>to</b> <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> - <span class="n">1</span> <b>do</b>
<a class="l" name="305" href="#305">305</a><span class='fold-space'>&nbsp;</span>          begin
<a class="l" name="306" href="#306">306</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="307" href="#307">307</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> := <a href="/source/s?defs=Pos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Pos</a>(<span class="s">&apos;|&apos;</span>, <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>)&#59;
<a class="l" name="308" href="#308">308</a><span class='fold-space'>&nbsp;</span>            <b>if</b> <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> &gt; <span class="n">0</span> <b>then</b>
<a class="l" name="309" href="#309">309</a><span class='fold-space'>&nbsp;</span>            begin
<a class="hl" name="310" href="#310">310</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=Delete" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Delete</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>, <span class="n">1</span>)&#59;
<a class="l" name="311" href="#311">311</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>] := <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>&#59;
<a class="l" name="312" href="#312">312</a><span class='fold-space'>&nbsp;</span><span class="c">//              if j &gt; 1 then</span>
<a class="l" name="313" href="#313">313</a><span class='fold-space'>&nbsp;</span><span class="c">//                Dec(j);</span>
<a class="l" name="314" href="#314">314</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=NewCaretPos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NewCaretPos</a> := <a href="/source/s?defs=True" class="intelliWindow-symbol" data-definition-place="undefined-in-file">True</a>&#59;
<a class="l" name="315" href="#315">315</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Line" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Line</a>, <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="316" href="#316">316</a><span class='fold-space'>&nbsp;</span>              <b>if</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> = <span class="n">0</span> <b>then</b>
<a class="l" name="317" href="#317">317</a><span class='fold-space'>&nbsp;</span><span class="c">//                Inc(p.x, j)</span>
<a class="l" name="318" href="#318">318</a><span class='fold-space'>&nbsp;</span>                <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Char" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Char</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> - <span class="n">1</span>)
<a class="l" name="319" href="#319">319</a><span class='fold-space'>&nbsp;</span>              <b>else</b>
<a class="hl" name="320" href="#320">320</a><span class='fold-space'>&nbsp;</span>                <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>.<a href="/source/s?defs=Char" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Char</a> := <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>&#59;
<a class="l" name="321" href="#321">321</a><span class='fold-space'>&nbsp;</span>              <a href="/source/s?defs=Break" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Break</a>&#59;
<a class="l" name="322" href="#322">322</a><span class='fold-space'>&nbsp;</span>            end&#59;
<a class="l" name="323" href="#323">323</a><span class='fold-space'>&nbsp;</span>          end&#59;
<a class="l" name="324" href="#324">324</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Text</a>&#59;
<a class="l" name="325" href="#325">325</a><span class='fold-space'>&nbsp;</span>          <span class="c">// strip the trailing #13#10 that was appended by the stringlist</span>
<a class="l" name="326" href="#326">326</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>)&#59;
<a class="l" name="327" href="#327">327</a><span class='fold-space'>&nbsp;</span>          <b>if</b> (<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt;= <span class="n">2</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> - <span class="n">1</span>] = <span class="s">#13</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>] = <span class="s">#10</span>) <b>then</b>
<a class="l" name="328" href="#328">328</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=SetLength" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SetLength</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> - <span class="n">2</span>)&#59;
<a class="l" name="329" href="#329">329</a><span class='fold-space'>&nbsp;</span>        <b>finally</b>
<a class="hl" name="330" href="#330">330</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=Temp" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Temp</a>.<a href="/source/s?defs=Free" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Free</a>&#59;
<a class="l" name="331" href="#331">331</a><span class='fold-space'>&nbsp;</span>        end&#59;
<a class="l" name="332" href="#332">332</a><span class='fold-space'>&nbsp;</span>        <span class="c">// replace the selected text and position the caret</span>
<a class="l" name="333" href="#333">333</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=SelText" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SelText</a> := <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>&#59;
<a class="l" name="334" href="#334">334</a><span class='fold-space'>&nbsp;</span>        <b>if</b> <a href="/source/s?defs=NewCaretPos" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NewCaretPos</a> <b>then</b>
<a class="l" name="335" href="#335">335</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=CaretXY" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CaretXY</a> := <a href="/source/s?defs=p" class="intelliWindow-symbol" data-definition-place="undefined-in-file">p</a>&#59;
<a class="l" name="336" href="#336">336</a><span class='fold-space'>&nbsp;</span>      <b>finally</b>
<a class="l" name="337" href="#337">337</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=EndUpdate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">EndUpdate</a>&#59;
<a class="l" name="338" href="#338">338</a><span class='fold-space'>&nbsp;</span>      end&#59;
<a class="l" name="339" href="#339">339</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="hl" name="340" href="#340">340</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="341" href="#341">341</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="342" href="#342">342</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_6fcfd5d9' class='scope-head'><span class='scope-signature'>TCustomSynAutoComplete.GetCompletionsnull</span><a class="l" name="343" href="#343">343</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_6fcfd5d9_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="GetCompletions"/><a href="/source/s?refs=GetCompletions" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletions</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
</span><a class="l" name="344" href="#344">344</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="345" href="#345">345</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <b>not</b> <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> <b>then</b>
<a class="l" name="346" href="#346">346</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=ParseCompletionList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ParseCompletionList</a>&#59;
<a class="l" name="347" href="#347">347</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>&#59;
<a class="l" name="348" href="#348">348</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="349" href="#349">349</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_1a60bb78' class='scope-head'><span class='scope-signature'>TCustomSynAutoComplete.GetCompletionCommentsnull</span><a class="hl" name="350" href="#350">350</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_1a60bb78_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="GetCompletionComments"/><a href="/source/s?refs=GetCompletionComments" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletionComments</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
</span><a class="l" name="351" href="#351">351</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="352" href="#352">352</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <b>not</b> <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> <b>then</b>
<a class="l" name="353" href="#353">353</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=ParseCompletionList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ParseCompletionList</a>&#59;
<a class="l" name="354" href="#354">354</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>&#59;
<a class="l" name="355" href="#355">355</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="356" href="#356">356</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_fc49aad' class='scope-head'><span class='scope-signature'>TCustomSynAutoComplete.GetCompletionValuesnull</span><a class="l" name="357" href="#357">357</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_fc49aad_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="GetCompletionValues"/><a href="/source/s?refs=GetCompletionValues" class="xf intelliWindow-symbol" data-definition-place="def">GetCompletionValues</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>&#59;
</span><a class="l" name="358" href="#358">358</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="359" href="#359">359</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <b>not</b> <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> <b>then</b>
<a class="hl" name="360" href="#360">360</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=ParseCompletionList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ParseCompletionList</a>&#59;
<a class="l" name="361" href="#361">361</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>&#59;
<a class="l" name="362" href="#362">362</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="363" href="#363">363</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_17abae85' class='scope-head'><span class='scope-signature'>TCustomSynAutoComplete.GetEditorCountnull</span><a class="l" name="364" href="#364">364</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_17abae85_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="GetEditorCount"/><a href="/source/s?refs=GetEditorCount" class="xf intelliWindow-symbol" data-definition-place="def">GetEditorCount</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
</span><a class="l" name="365" href="#365">365</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="366" href="#366">366</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a>&#59;
<a class="l" name="367" href="#367">367</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="368" href="#368">368</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_dab0a72d' class='scope-head'><span class='scope-signature'>TCustomSynAutoComplete.GetNthEditornull</span><a class="l" name="369" href="#369">369</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_dab0a72d_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="GetNthEditor"/><a href="/source/s?refs=GetNthEditor" class="xf intelliWindow-symbol" data-definition-place="def">GetNthEditor</a>(<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>): <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>&#59;
</span><a class="hl" name="370" href="#370">370</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="371" href="#371">371</a><span class='fold-space'>&nbsp;</span>  <b>if</b> (<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a> &gt;= <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a> &lt; <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a>) <b>then</b>
<a class="l" name="372" href="#372">372</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>[<a href="/source/s?defs=Index" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Index</a>]
<a class="l" name="373" href="#373">373</a><span class='fold-space'>&nbsp;</span>  <b>else</b>
<a class="l" name="374" href="#374">374</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <b>nil</b>&#59;
<a class="l" name="375" href="#375">375</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="376" href="#376">376</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="377" href="#377">377</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="Notification"/><a href="/source/s?refs=Notification" class="d intelliWindow-symbol" data-definition-place="def">Notification</a>(<a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a>: <a href="/source/s?defs=TComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TComponent</a>&#59;
<a class="l" name="378" href="#378">378</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Operation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Operation</a>: <a href="/source/s?defs=TOperation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TOperation</a>)&#59;
<a class="l" name="379" href="#379">379</a><span class='fold-space'>&nbsp;</span>begin
<a class="hl" name="380" href="#380">380</a><span class='fold-space'>&nbsp;</span>  <b>inherited</b> <a href="/source/s?defs=Notification" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Notification</a>(<a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a>, <a href="/source/s?defs=Operation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Operation</a>)&#59;
<a class="l" name="381" href="#381">381</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=Operation" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Operation</a> = <a href="/source/s?defs=opRemove" class="intelliWindow-symbol" data-definition-place="undefined-in-file">opRemove</a> <b>then</b>
<a class="l" name="382" href="#382">382</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="383" href="#383">383</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a> = <a class="d intelliWindow-symbol" href="#Editor" data-definition-place="defined-in-file">Editor</a> <b>then</b>
<a class="l" name="384" href="#384">384</a><span class='fold-space'>&nbsp;</span>      <a class="d intelliWindow-symbol" href="#Editor" data-definition-place="defined-in-file">Editor</a> := <b>nil</b>
<a class="l" name="385" href="#385">385</a><span class='fold-space'>&nbsp;</span>    <b>else</b> <b>if</b> <a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a> <b>is</b> <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a> <b>then</b>
<a class="l" name="386" href="#386">386</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=RemoveEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">RemoveEditor</a>(<a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>(<a href="/source/s?defs=AComponent" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AComponent</a>))&#59;
<a class="l" name="387" href="#387">387</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="388" href="#388">388</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="389" href="#389">389</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="390" href="#390">390</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="ParseCompletionList"/><a href="/source/s?refs=ParseCompletionList" class="d intelliWindow-symbol" data-definition-place="def">ParseCompletionList</a>&#59;
<a class="l" name="391" href="#391">391</a><span class='fold-space'>&nbsp;</span><b>var</b>
<a class="l" name="392" href="#392">392</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=BorlandDCI" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BorlandDCI</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="l" name="393" href="#393">393</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="394" href="#394">394</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a>, <a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>, <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a>: <a href="/source/s?defs=UnicodeString" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnicodeString</a>&#59;
<a class="l" name="395" href="#395">395</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="396" href="#396">396</a><span class='fold-space'>&nbsp;</span>  <b>procedure</b> <a class="d" name="SaveEntry"/><a href="/source/s?refs=SaveEntry" class="d intelliWindow-symbol" data-definition-place="def">SaveEntry</a>&#59;
<a class="l" name="397" href="#397">397</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="398" href="#398">398</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a>)&#59;
<a class="l" name="399" href="#399">399</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="hl" name="400" href="#400">400</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>)&#59;
<a class="l" name="401" href="#401">401</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="l" name="402" href="#402">402</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>.<a href="/source/s?defs=Add" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Add</a>(<a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a>)&#59;
<a class="l" name="403" href="#403">403</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="l" name="404" href="#404">404</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="405" href="#405">405</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="406" href="#406">406</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="407" href="#407">407</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletions" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletions</a>.<a href="/source/s?defs=Clear" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Clear</a>&#59;
<a class="l" name="408" href="#408">408</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionComments" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionComments</a>.<a href="/source/s?defs=Clear" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Clear</a>&#59;
<a class="l" name="409" href="#409">409</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FCompletionValues" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FCompletionValues</a>.<a href="/source/s?defs=Clear" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Clear</a>&#59;
<a class="hl" name="410" href="#410">410</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="411" href="#411">411</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> &gt; <span class="n">0</span> <b>then</b>
<a class="l" name="412" href="#412">412</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="413" href="#413">413</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>[<span class="n">0</span>]&#59;
<a class="l" name="414" href="#414">414</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=BorlandDCI" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BorlandDCI</a> := (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> &lt;&gt; <span class="s">&apos;&apos;</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<span class="n">1</span>] = <span class="s">&apos;[&apos;</span>)&#59;
<a class="l" name="415" href="#415">415</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="416" href="#416">416</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="l" name="417" href="#417">417</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="l" name="418" href="#418">418</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <span class="s">&apos;&apos;</span>&#59;
<a class="l" name="419" href="#419">419</a><span class='fold-space'>&nbsp;</span>    <b>for</b> <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <span class="n">0</span> <b>to</b> <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>.<a href="/source/s?defs=Count" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Count</a> - <span class="n">1</span> <b>do</b>
<a class="hl" name="420" href="#420">420</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="421" href="#421">421</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a> := <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>[<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>]&#59;
<a class="l" name="422" href="#422">422</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> := <a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>)&#59;
<a class="l" name="423" href="#423">423</a><span class='fold-space'>&nbsp;</span>      <b>if</b> <a href="/source/s?defs=BorlandDCI" class="intelliWindow-symbol" data-definition-place="undefined-in-file">BorlandDCI</a> <b>then</b>
<a class="l" name="424" href="#424">424</a><span class='fold-space'>&nbsp;</span>      begin
<a class="l" name="425" href="#425">425</a><span class='fold-space'>&nbsp;</span>        <span class="c">// the style of the Delphi32.dci file</span>
<a class="l" name="426" href="#426">426</a><span class='fold-space'>&nbsp;</span>        <b>if</b> (<a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<span class="n">1</span>] = <span class="s">&apos;[&apos;</span>) <b>then</b>
<a class="l" name="427" href="#427">427</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="428" href="#428">428</a><span class='fold-space'>&nbsp;</span>          <span class="c">// save last entry</span>
<a class="l" name="429" href="#429">429</a><span class='fold-space'>&nbsp;</span>          <b>if</b> <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> &lt;&gt; <span class="s">&apos;&apos;</span> <b>then</b>
<a class="hl" name="430" href="#430">430</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#SaveEntry" data-definition-place="defined-in-file">SaveEntry</a>&#59;
<a class="l" name="431" href="#431">431</a><span class='fold-space'>&nbsp;</span>          <span class="c">// new completion entry</span>
<a class="l" name="432" href="#432">432</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> := <span class="n">2</span>&#59;
<a class="l" name="433" href="#433">433</a><span class='fold-space'>&nbsp;</span>          <b>while</b> (<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> &lt;= <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>] &gt; <span class="s">&apos; &apos;</span>) <b>do</b>
<a class="l" name="434" href="#434">434</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>)&#59;
<a class="l" name="435" href="#435">435</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> := <a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <span class="n">2</span>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> - <span class="n">2</span>)&#59;
<a class="l" name="436" href="#436">436</a><span class='fold-space'>&nbsp;</span>          <span class="c">// start of comment in DCI file</span>
<a class="l" name="437" href="#437">437</a><span class='fold-space'>&nbsp;</span>          <b>while</b> (<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> &lt;= <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>] &lt;= <span class="s">&apos; &apos;</span>) <b>do</b>
<a class="l" name="438" href="#438">438</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>)&#59;
<a class="l" name="439" href="#439">439</a><span class='fold-space'>&nbsp;</span>          <b>if</b> (<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> &lt;= <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>] = <span class="s">&apos;|&apos;</span>) <b>then</b>
<a class="hl" name="440" href="#440">440</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>)&#59;
<a class="l" name="441" href="#441">441</a><span class='fold-space'>&nbsp;</span>          <b>while</b> (<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a> &lt;= <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>] &lt;= <span class="s">&apos; &apos;</span>) <b>do</b>
<a class="l" name="442" href="#442">442</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=Inc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Inc</a>(<a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>)&#59;
<a class="l" name="443" href="#443">443</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a> := <a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <a href="/source/s?defs=j" class="intelliWindow-symbol" data-definition-place="undefined-in-file">j</a>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>)&#59;
<a class="l" name="444" href="#444">444</a><span class='fold-space'>&nbsp;</span>          <b>if</b> <a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>[<a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>)] = <span class="s">&apos;]&apos;</span> <b>then</b>
<a class="l" name="445" href="#445">445</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=SetLength" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SetLength</a>(<a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>, <a href="/source/s?defs=Length" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Length</a>(<a href="/source/s?defs=sComment" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComment</a>) - <span class="n">1</span>)&#59;
<a class="l" name="446" href="#446">446</a><span class='fold-space'>&nbsp;</span>        end
<a class="l" name="447" href="#447">447</a><span class='fold-space'>&nbsp;</span>        <b>else</b>
<a class="l" name="448" href="#448">448</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="449" href="#449">449</a><span class='fold-space'>&nbsp;</span>          <b>if</b> <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> &lt;&gt; <span class="s">&apos;&apos;</span> <b>then</b>
<a class="hl" name="450" href="#450">450</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> + <span class="s">#13</span><span class="s">#10</span>&#59;
<a class="l" name="451" href="#451">451</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> + <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>&#59;
<a class="l" name="452" href="#452">452</a><span class='fold-space'>&nbsp;</span>        end&#59;
<a class="l" name="453" href="#453">453</a><span class='fold-space'>&nbsp;</span>      end
<a class="l" name="454" href="#454">454</a><span class='fold-space'>&nbsp;</span>      <b>else</b>
<a class="l" name="455" href="#455">455</a><span class='fold-space'>&nbsp;</span>      begin
<a class="l" name="456" href="#456">456</a><span class='fold-space'>&nbsp;</span>        <span class="c">// the original style</span>
<a class="l" name="457" href="#457">457</a><span class='fold-space'>&nbsp;</span>        <b>if</b> (<a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<span class="n">1</span>] &lt;&gt; <span class="s">&apos;=&apos;</span>) <b>then</b>
<a class="l" name="458" href="#458">458</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="459" href="#459">459</a><span class='fold-space'>&nbsp;</span>          <span class="c">// save last entry</span>
<a class="hl" name="460" href="#460">460</a><span class='fold-space'>&nbsp;</span>          <b>if</b> <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> &lt;&gt; <span class="s">&apos;&apos;</span> <b>then</b>
<a class="l" name="461" href="#461">461</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#SaveEntry" data-definition-place="defined-in-file">SaveEntry</a>&#59;
<a class="l" name="462" href="#462">462</a><span class='fold-space'>&nbsp;</span>          <span class="c">// new completion entry</span>
<a class="l" name="463" href="#463">463</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> := <a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>&#59;
<a class="l" name="464" href="#464">464</a><span class='fold-space'>&nbsp;</span>        end
<a class="l" name="465" href="#465">465</a><span class='fold-space'>&nbsp;</span>        <b>else</b> <b>if</b> (<a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a> &gt; <span class="n">0</span>) <b>and</b> (<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>[<span class="n">1</span>] = <span class="s">&apos;=&apos;</span>) <b>then</b>
<a class="l" name="466" href="#466">466</a><span class='fold-space'>&nbsp;</span>        begin
<a class="l" name="467" href="#467">467</a><span class='fold-space'>&nbsp;</span>          <b>if</b> <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> &lt;&gt; <span class="s">&apos;&apos;</span> <b>then</b>
<a class="l" name="468" href="#468">468</a><span class='fold-space'>&nbsp;</span>            <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> + <span class="s">#13</span><span class="s">#10</span>&#59;
<a class="l" name="469" href="#469">469</a><span class='fold-space'>&nbsp;</span>          <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> := <a href="/source/s?defs=sComplValue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sComplValue</a> + <a href="/source/s?defs=Copy" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Copy</a>(<a href="/source/s?defs=s" class="intelliWindow-symbol" data-definition-place="undefined-in-file">s</a>, <span class="n">2</span>, <a href="/source/s?defs=Len" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Len</a>)&#59;
<a class="hl" name="470" href="#470">470</a><span class='fold-space'>&nbsp;</span>        end&#59;
<a class="l" name="471" href="#471">471</a><span class='fold-space'>&nbsp;</span>      end&#59;
<a class="l" name="472" href="#472">472</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="l" name="473" href="#473">473</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=sCompl" class="intelliWindow-symbol" data-definition-place="undefined-in-file">sCompl</a> &lt;&gt; <span class="s">&apos;&apos;</span> <b>then</b>                                                        <span class="c">//mg 2000-11-07</span>
<a class="l" name="474" href="#474">474</a><span class='fold-space'>&nbsp;</span>      <a class="d intelliWindow-symbol" href="#SaveEntry" data-definition-place="defined-in-file">SaveEntry</a>&#59;
<a class="l" name="475" href="#475">475</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="476" href="#476">476</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> := <a href="/source/s?defs=True" class="intelliWindow-symbol" data-definition-place="undefined-in-file">True</a>&#59;
<a class="l" name="477" href="#477">477</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="478" href="#478">478</a><span class='fold-space'>&nbsp;</span>
<span id='scope_id_a6848a4e' class='scope-head'><span class='scope-signature'>RemoveEditornull</span><a class="l" name="479" href="#479">479</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_a6848a4e_fold_icon'><span class='fold-icon'>&nbsp;</span></a><b>function</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="xf" name="RemoveEditor"/><a href="/source/s?refs=RemoveEditor" class="xf intelliWindow-symbol" data-definition-place="def">RemoveEditor</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>): <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
</span><a class="hl" name="480" href="#480">480</a><span class='fold-space'>&nbsp;</span><b>var</b>
<a class="l" name="481" href="#481">481</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>: <a href="/source/s?defs=Integer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Integer</a>&#59;
<a class="l" name="482" href="#482">482</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="483" href="#483">483</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a> &lt;&gt; <b>nil</b> <b>then</b>
<a class="l" name="484" href="#484">484</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="485" href="#485">485</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> := <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=IndexOf" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IndexOf</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>)&#59;
<a class="l" name="486" href="#486">486</a><span class='fold-space'>&nbsp;</span>    <b>if</b> (<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a> &gt; <span class="n">-1</span>) <b>then</b>
<a class="l" name="487" href="#487">487</a><span class='fold-space'>&nbsp;</span>    begin
<a class="l" name="488" href="#488">488</a><span class='fold-space'>&nbsp;</span>      <b>if</b> <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> = <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a> <b>then</b>
<a class="l" name="489" href="#489">489</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> := <b>nil</b>&#59;
<a class="hl" name="490" href="#490">490</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=FEditors" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditors</a>.<a href="/source/s?defs=Delete" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Delete</a>(<a href="/source/s?defs=i" class="intelliWindow-symbol" data-definition-place="undefined-in-file">i</a>)&#59;
<a class="l" name="491" href="#491">491</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>.<a href="/source/s?defs=UnregisterCommandHandler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UnregisterCommandHandler</a>(<a href="/source/s?defs=SynEditCommandHandler" class="intelliWindow-symbol" data-definition-place="undefined-in-file">SynEditCommandHandler</a>)&#59;
<a class="l" name="492" href="#492">492</a><span class='fold-space'>&nbsp;</span>      <span class="c">{$IFDEF SYN_COMPILER_5_UP}</span>
<a class="l" name="493" href="#493">493</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=RemoveFreeNotification" class="intelliWindow-symbol" data-definition-place="undefined-in-file">RemoveFreeNotification</a>(<a href="/source/s?defs=AEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AEditor</a>)&#59;
<a class="l" name="494" href="#494">494</a><span class='fold-space'>&nbsp;</span>      <span class="c">{$ENDIF}</span>
<a class="l" name="495" href="#495">495</a><span class='fold-space'>&nbsp;</span>    end&#59;
<a class="l" name="496" href="#496">496</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="497" href="#497">497</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=Result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Result</a> := <a href="/source/s?defs=False" class="intelliWindow-symbol" data-definition-place="undefined-in-file">False</a>&#59;
<a class="l" name="498" href="#498">498</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="499" href="#499">499</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="500" href="#500">500</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="SetAutoCompleteList"/><a href="/source/s?refs=SetAutoCompleteList" class="d intelliWindow-symbol" data-definition-place="def">SetAutoCompleteList</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>: <a href="/source/s?defs=TUnicodeStrings" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TUnicodeStrings</a>)&#59;
<a class="l" name="501" href="#501">501</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="502" href="#502">502</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FAutoCompleteList" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FAutoCompleteList</a>.<a href="/source/s?defs=Assign" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Assign</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>)&#59;
<a class="l" name="503" href="#503">503</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=FParsed" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FParsed</a> := <a href="/source/s?defs=False" class="intelliWindow-symbol" data-definition-place="undefined-in-file">False</a>&#59;
<a class="l" name="504" href="#504">504</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="505" href="#505">505</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="506" href="#506">506</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="SetEditor"/><a href="/source/s?refs=SetEditor" class="d intelliWindow-symbol" data-definition-place="def">SetEditor</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>: <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="507" href="#507">507</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="508" href="#508">508</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a> &lt;&gt; <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> <b>then</b>
<a class="l" name="509" href="#509">509</a><span class='fold-space'>&nbsp;</span>  begin
<a class="hl" name="510" href="#510">510</a><span class='fold-space'>&nbsp;</span>    <b>if</b> <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> &lt;&gt; <b>nil</b> <b>then</b>
<a class="l" name="511" href="#511">511</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=RemoveEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">RemoveEditor</a>(<a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a>)&#59;
<a class="l" name="512" href="#512">512</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=FEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">FEditor</a> := <a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>&#59;
<a class="l" name="513" href="#513">513</a><span class='fold-space'>&nbsp;</span>    <b>if</b> (<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a> &lt;&gt; <b>nil</b>) <b>then</b>
<a class="l" name="514" href="#514">514</a><span class='fold-space'>&nbsp;</span>      <a href="/source/s?defs=AddEditor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AddEditor</a>(<a href="/source/s?defs=Value" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Value</a>)&#59;
<a class="l" name="515" href="#515">515</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="516" href="#516">516</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="517" href="#517">517</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="518" href="#518">518</a><span class='fold-space'>&nbsp;</span><b>procedure</b> <a class="d intelliWindow-symbol" href="#TCustomSynAutoComplete" data-definition-place="defined-in-file">TCustomSynAutoComplete</a>.<a class="d" name="SynEditCommandHandler"/><a href="/source/s?refs=SynEditCommandHandler" class="d intelliWindow-symbol" data-definition-place="def">SynEditCommandHandler</a>(<a href="/source/s?defs=Sender" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Sender</a>: <a href="/source/s?defs=TObject" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TObject</a>&#59;
<a class="l" name="519" href="#519">519</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=AfterProcessing" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AfterProcessing</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59; <b>var</b> <a href="/source/s?defs=Handled" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Handled</a>: <a href="/source/s?defs=Boolean" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Boolean</a>&#59;
<a class="hl" name="520" href="#520">520</a><span class='fold-space'>&nbsp;</span>  <b>var</b> <a href="/source/s?defs=Command" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Command</a>: <a href="/source/s?defs=TSynEditorCommand" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TSynEditorCommand</a>&#59; <b>var</b> <a href="/source/s?defs=AChar" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AChar</a>: <a href="/source/s?defs=WideChar" class="intelliWindow-symbol" data-definition-place="undefined-in-file">WideChar</a>&#59; <a href="/source/s?defs=Data" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Data</a>,
<a class="l" name="521" href="#521">521</a><span class='fold-space'>&nbsp;</span>  <a href="/source/s?defs=HandlerData" class="intelliWindow-symbol" data-definition-place="undefined-in-file">HandlerData</a>: <a href="/source/s?defs=Pointer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Pointer</a>)&#59;
<a class="l" name="522" href="#522">522</a><span class='fold-space'>&nbsp;</span>begin
<a class="l" name="523" href="#523">523</a><span class='fold-space'>&nbsp;</span>  <b>if</b> <b>not</b> <a href="/source/s?defs=AfterProcessing" class="intelliWindow-symbol" data-definition-place="undefined-in-file">AfterProcessing</a> <b>and</b> <b>not</b> <a href="/source/s?defs=Handled" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Handled</a> <b>and</b> (<a href="/source/s?defs=Command" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Command</a> = <a href="/source/s?defs=ecAutoCompletion" class="intelliWindow-symbol" data-definition-place="undefined-in-file">ecAutoCompletion</a>) <b>then</b>
<a class="l" name="524" href="#524">524</a><span class='fold-space'>&nbsp;</span>  begin
<a class="l" name="525" href="#525">525</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Handled" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Handled</a> := <a href="/source/s?defs=True" class="intelliWindow-symbol" data-definition-place="undefined-in-file">True</a>&#59;
<a class="l" name="526" href="#526">526</a><span class='fold-space'>&nbsp;</span>    <a href="/source/s?defs=Execute" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Execute</a>(&amp;<a href="/source/s?defs=Sender" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Sender</a> <b>as</b> <a href="/source/s?defs=TCustomSynEdit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">TCustomSynEdit</a>)&#59;
<a class="l" name="527" href="#527">527</a><span class='fold-space'>&nbsp;</span>  end&#59;
<a class="l" name="528" href="#528">528</a><span class='fold-space'>&nbsp;</span>end&#59;
<a class="l" name="529" href="#529">529</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="530" href="#530">530</a><span class='fold-space'>&nbsp;</span>end.
<a class="l" name="531" href="#531">531</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="532" href="#532">532</a><span class='fold-space'>&nbsp;</span><span class="c">{ Comment 1 (* comment 2 *) <a href="http://example.com">http://example.com</a>}</span>
<a class="l" name="533" href="#533">533</a><span class='fold-space'>&nbsp;</span><span class="c">(* Comment 1 { comment 2 } <a href="http://example.com">http://example.com</a>*)</span>
<a class="l" name="534" href="#534">534</a><span class='fold-space'>&nbsp;</span><span class="c">{ comment 1 // Comment 2 }</span>
<a class="l" name="535" href="#535">535</a><span class='fold-space'>&nbsp;</span><span class="c">(* comment 1 // Comment 2 *)</span>
<a class="l" name="536" href="#536">536</a><span class='fold-space'>&nbsp;</span><span class="c">// comment 1 (* comment 2 *)</span>
<a class="l" name="537" href="#537">537</a><span class='fold-space'>&nbsp;</span><span class="c">// comment 1 { comment 2 }</span>
<a class="l" name="538" href="#538">538</a><span class='fold-space'>&nbsp;</span></body>
</html>
